Skip to content

ARROW-5125: [Python] Round-trip extreme dates on windows#5306

Closed
emkornfield wants to merge 7 commits intoapache:masterfrom
emkornfield:python_date_roundtrip
Closed

ARROW-5125: [Python] Round-trip extreme dates on windows#5306
emkornfield wants to merge 7 commits intoapache:masterfrom
emkornfield:python_date_roundtrip

Conversation

@emkornfield
Copy link
Copy Markdown
Contributor

Also, tries to fix: ARROW-4746 by separating out PyDateTime_DATE_GET_* calls that should only be called on datetime objects to the appropriate method.

Note, I don't have a windows box readily available to test on, and couldn't replicate on Mac (per linked python issue on the JIRA I believe this is windows only). So I hope we have appveyor tests that cover this.

If there are instructions for running pypy I can see if this fixes ARROW-4746

@emkornfield
Copy link
Copy Markdown
Contributor Author

@ursabot build

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might not be necessary, if we never expect a datetime object here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact I think this is wrong (we always want truncation, but I'll let the reviewer confirm).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's probably OK, but we should check whether the milliseconds are 0. I'll pull it down and take a quick look

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an alternative approach would be to do if (pycheck_DateTime(pydate)) here, not sure if that is preferred.

@wesm wesm force-pushed the python_date_roundtrip branch from 3f6d944 to a2b5a8f Compare September 7, 2019 01:19
Copy link
Copy Markdown
Member

@wesm wesm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. Merge on passing build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants